#include "world.h"

World World::self;

World::World()
{
}
void World::updateEntities(){
    for(Entity *ent : entities){
        if(ent->isAlive()){
            ent->update();
        }
    }
}
void World::addEntity(Entity *ent){
    entities.push_back(ent);
}
void World::addPlayer(int team){
    players.push_back(new PlayerController(team));
}
ComputerController* World::addComputer(int team){
    ComputerController *computer = new ComputerController(team);
    players.push_back(computer);
    return computer;
}
